/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dp.utils;

import com.dp.dto.IBaseDTO;

/**
 *
 * @author hisik
 */
public class ReflectionUtils {

   

    public static final Object createDTOInstance(String classFullPath) {
        
        Class c = null;
        IBaseDTO interfaceType = null;
        try {
            c = Class.forName(classFullPath);
            
            interfaceType = (IBaseDTO) c.newInstance();
            
        } catch (ClassNotFoundException ex) {
//            Logger.getLogger(ReflectionUtils.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
//            Logger.getLogger(ReflectionUtils.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
//            Logger.getLogger(ReflectionUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return interfaceType;
    }

}
